// api.js是用来管理整个项目的所有接口的
import http from "./http";

//首页的轮播图接口
export const bannerListApi = (params) => http.get("/home/banner", params);
//首页的推荐商品
export const recommendListApi = (data) => http.post("/home/recommend", data);
//分类
export const classifyListApi = (data) => http.post("/classify", data);
//详情页
export const IndexDetailifyListApi = (data) => http.post("/detail", data);
//飞机页
export const planetListApi = (data) => http.get("/api", data);
//获取Icon图标
export const iconApi = (params) => http.get("/icon", params);
//获取消息也数据
export const newsApi = (params) => http.get("/news", params);
//获取trips页面数据
export const tripApi = (params) => http.get("/trip", params);
//获取camera页面图片
export const cameraApi = (params) => http.get("/camera", params);
//获取首页图片数据
export const indexImgApi = (params) => http.get("/indeximg", params);
//获取首页图片数据
export const indexRecommendApi = (params) => http.get("/indexsj", params);
//获取住宿图片数据
export const indexLiveApi = (params) => http.get("/live", params);
//获取旅游数据
export const travelApi = (params) => http.get("/travel", params);
//社区页面接口_固定背景图
export const immobilizationApi = (params) => http.get("/community", params);
//社区页面接口_社区评论
export const communityApi = (params) => http.get("/sqxx", params);
